var express = require('express')
var Router = express.Router()


var OperationOfDatabase=require('../databaseManage/OperationOfDatabase')
var db=new OperationOfDatabase();

 
Router.get('/', function (req, res) {
   //var data=JSON.parse(req.query[0])
	var page=req.query.page;
	page=5*parseInt(page);
	//console.log(req.query);
	db.getAllPostsSkipAndLimit(page,5,res);
   //res.send('<h1>服务器端响应了login功能</h1>')
})
module.exports = Router;